<template>
  <div class="container">
    <div class="cards cards-borderless">
      <div class="col-md-4 col-sm-6 col-lg-3">
        <a class="card" href="###">
          <img src="../assets/img/img99.png" alt="" />
          <div class="caption">“良辰美景” 出自《牡丹亭》</div>
          <div class="card-heading" @click="goto">
            <strong>高网一班</strong>
          </div>
          <div class="card-content text-muted">
            学年：2021/2
          </div>

        </a>
      </div>
      <div class="col-md-4 col-sm-6 col-lg-3">
        <a class="card" href="###">
          <img src="../assets/img/img99.png" alt="" />
          <div class="caption">“良辰美景” 出自《牡丹亭》</div>
          <div class="card-heading" @click="gotoname">
            <strong>Java二班</strong>
          </div>
          <div class="card-content text-muted">
            学年：2022/2
          </div>
        </a>
      </div>
      <div class="col-md-4 col-sm-6 col-lg-3">
        <a class="card" href="###">
          <img src="../assets/img/img99.png" alt="" />
          <div class="caption">“良辰美景” 出自《牡丹亭》</div>
          <router-link :to="{ name: 'detail' }">
            <div class="card-heading">
              <strong>软件体系架构</strong>
            </div></router-link
          >
          <div class="card-content text-muted">
            学年：2021/1
          </div>
        </a>
      </div>
      <div class="col-md-4 col-sm-6 col-lg-3">
        <a class="card" href="###">
          <img src="../assets/img/img99.png" alt="" />
          <div class="caption">“良辰美景” 出自《牡丹亭》</div>
          <router-link to="/detail/444">
            <div class="card-heading">
              <strong>高级网页设计</strong>
            </div></router-link
          >
          <div class="card-content text-muted">
            学年：2021/2
          </div>
        </a>
      </div>
    
     
    </div>
  </div>
</template>

<script>
export default {
  name:"cardcs",
  methods: {
    goto() {
      this.$router.push("/detail");
    },
    gotoname() {
      this.$router.push({ name: "detail" });
    },
    gotoparams() {
      this.$router.push({ name: "detail", params: { id: 666 } });
    },
  },
};
</script>

<style>
@import "../assets/css/zui.css";
</style>
